package cn.star.jots.employee.mapper;

import cn.star.jots.employee.pojo.dto.EmployeeQuery;
import cn.star.jots.employee.pojo.entity.Employee;
import cn.star.jots.employee.pojo.vo.EmployeeVO;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@ResponseBody

public interface EmployeeMapper {

    EmployeeVO selectByJobNumber(String jobNumber);

    EmployeeVO selectByPhone(String phone);

    List<EmployeeVO> selectAll(EmployeeQuery employeeQuery);

    void save(Employee employee);

    void update(Employee employee);

    void delete(Long id);

    EmployeeVO selectById(Long id);
}
